package cn.com.jslh.boarpro.util.template;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/11/17.
 */

public class AddTempBaseItem {
    /**
     * id : xxx
     * title : 销售原因
     * itemtype : select
     * action : getXSAction
     * key : xxyy
     * result :
     * placeholder : 请输选择售原因
     * config : {"matterarry":[{"name":"原因1","id":222},{"name":"原因2","id":223},{"name":"原因3","id":224}]}
     */

    private String title;
    private String itemtype;
    private String key;
    private String result;
    private String placeholder;
    private String config;
    private String iskeep; // 0: false  1 true
    private String isrequired; // 0 :false  1 true\
    private String showInfo;

    public String getShowInfo() {
        return showInfo;
    }

    public void setShowInfo(String showInfo) {
        this.showInfo = showInfo;
    }

    public String getIskeep() {
        return iskeep;
    }

    public void setIskeep(String iskeep) {
        this.iskeep = iskeep;
    }

    public String getIsrequired() {
        return isrequired;
    }

    public void setIsrequired(String isrequired) {
        this.isrequired = isrequired;
    }

//    public abstract String getFlag();

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getItemtype() {
        return itemtype;
    }

    public void setItemtype(String itemtype) {
        this.itemtype = itemtype;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    public void setPlaceholder(String placeholder) {
        this.placeholder = placeholder;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public void injectData(AddTempBaseItem data) {
        this.setIsrequired(data.getIsrequired());
        this.setIskeep(data.getIskeep());
        this.setItemtype(data.getItemtype());
        this.setKey(data.getKey());
        this.setResult(data.getResult());
        this.setPlaceholder(data.getPlaceholder());
        this.setConfig(data.getConfig());
        this.setTitle(data.getTitle());
        this.setShowInfo(data.getShowInfo());
    }
}
